<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航菜单</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            text-decoration: none;
            font-weight: 520;
            font-family: 微软雅黑;
        }
 
        #top {
            width: 1470px;
            height: 72px;
            background-color: rgb(104, 205, 255);
            border-radius: 20px;
            margin: 20px auto;
        }
 
        #top>ul>li {
            float: left;
            width: 175px;
            height: 72px;
            text-align: center;
        }
 
        #top>ul>li>a {
            text-align: center;
            line-height: 72px;
            font-size: 20px;
            color: black;
        }
 
        #top>ul>li>a:hover {
            color: red;
        }
 
        ul>span {
            float: left;
            line-height: 72px;
            color: rgb(225, 224, 224);
            font-weight: 800;
            font-size: 24px;
        }
 
        #top>ul>li>.a1,.a2 {
            color: black;
        }
        ul>li>ul {
            display: none;
            position: absolute;
            float: none;
        }
        ul>li:hover ul{
            display: block;
        }
        .a2{
            text-decoration: none;
            font-weight: 800;
            font-size: large;
            display: inline-block;
            height: 40px;
            width: 100px;
            color: white;
            background-color:rgb(104, 205, 255);
            line-height: 40px;
            text-align: center;
            padding: 10px 40px;
        }
        .a2:hover{
            background-color: rgb(115, 250, 207);
        }
        img{
            width: 60px;
            height: 40px;

        }
    </style>
</head>
 
<body>
    <div id="top">
        <ul>
            <li>
                <a href="#" class="a1">首页</a>
            </li><span>|</span>
            <li>   
                <img src="img/01.jpg">    
                <a href="#" class="a1">新闻</a>
            </li><span>|</span>

            <li>
                <a href="#">登录</a>
                <ul id="u1">
                    <li><a class="a2">111</a></li>
                    <li><a class="a2">222</a></li>
                </ul>
            </li>
                <span>|</span>
        </ul>
    </div>
</body>
 
</html>